Static:
String.valueOf(true)             : <?= true ? "true" : "false" ?> 
String.valueOf(1)                : <?= (string) 1 ?> 

Normal:
<?
/* string */ $s = "ala"; /* string */ $t = "ola";
?>
"ala"                            : <?= "ala" ?> 
"ala" + " ma kota"               : <?= "ala" . " ma kota" ?> 
"ala " + 1                       : <?= "ala " . 1 ?> 
"ala " + 1 + 2                   : <?= "ala " . 1 . 2 ?> 
"ala " + 1 + 2.1                 : <?= "ala " . 1 . 2.1 ?> 
"ala " + 1 + -1                  : <?= "ala " . 1 . -1 ?> 
"ala " + 2 * 3                   : <?= "ala " . 1 . 2 * 3 ?> 
"10" + 3 + 2 * 3                 : <?= "10" . 3 . 2 * 3 ?> 
"10" + 3 + 2 * -3                : <?= "10" . 3 . 2 * -3 ?> 
"ala " + -2                      : <?= "ala " . -2 ?> 
"ala " + 3.0                     : <?= "ala " . 3.0 ?> 
"ala " + -4.0                    : <?= "ala " . -4.0 ?> 
5 + " ala"                       : <?= 5 . " ala" ?> 
-6 + " ala"                      : <?= -6 . " ala" ?> 
7.1 + " ala"                     : <?= 7.1 . " ala" ?> 
-8.2e13 + " ala"                 : <?= -8.2E13 . " ala" ?> 
"ala" + " ma kota " + 9          : <?= "ala" . " ma kota " . 9 ?> 
"ala " + 10 + " ma kota"         : <?= "ala " . 10 . " ma kota" ?> 
11 + " ala" + " ma kota"         : <?= 11 . " ala" . " ma kota" ?> 
"ala " + true                    : <?= "ala " . ( true ? "true" : "false" ) ?> 
true + " ala"                    : <?= ( true ? "true" : "false" ) . " ala" ?> 
"ala " + 1 + true                : <?= "ala " . 1 . ( true ? "true" : "false" ) ?> 
1 + " ala " + true               : <?= 1 . " ala " . ( true ? "true" : "false" ) ?> 
1 - 2 + " ala " + true           : <?= 1 - 2 . " ala " . ( true ? "true" : "false" ) ?> 
2.1 * - 3.2 + " ala " + -6 / 2.0 : <?= 2.1 * -3.2 . " ala " . -6 / 2.0 ?> 
// 1 + true + "ala" is not correct Java expression

"ala" + 1 + 2 + 3 + 4            : <?= "ala" . 1 . 2 . 3 . 4 ?> 
1 + "ala" + 2 + 3 + 4            : <?= 1 . "ala" . 2 . 3 . 4 ?> 
1 + 2 + "ala" + 3 + 4            : <?= 1 + 2 . "ala" . 3 . 4 ?> 
1 + 2 + 3 + "ala" + 4            : <?= 1 + 2 + 3 . "ala" . 4 ?> 
1 + 2 + 3 + 4 + "ala"            : <?= 1 + 2 + 3 + 4 . "ala" ?> 

"ala" + 2*3 + 3*4 + 5*6          : <?= "ala" . 2 * 3 . 3 * 4 . 5 * 6 ?> 
2*3 + "ala" + 3*4 + 5*6          : <?= 2 * 3 . "ala" . 3 * 4 . 5 * 6 ?> 
2*3 + 3*4 + "ala" + 5*6          : <?= 2 * 3 + 3 * 4 . "ala" . 5 * 6 ?> 
2*3 + 3*4 + 5*6 + "ala"          : <?= 2 * 3 + 3 * 4 + 5 * 6 . "ala" ?> 

s                                : <?= $s ?> 
s += " ola"                      : <?= $s .= " ola" ?> 
s += 2                           : <?= $s .= 2 ?> 
s = "al"                         : <?= $s = $s = "al" ?> 
s += s += 2 + s                  : <?= $s = $s . $s .= 2 . $s ?> 
s += true                        : <?= $s .= ( true ? "true" : "false" ) ?> 
s = "ala"                        : <?= $s = "ala" ?> 
t                                : <?= $t ?> 
t +=s += t += s                  : <?= $t = $t . $s .= $t .= $s ?> 
s = "ala"                        : <?= $s = "ala" ?> 
t = "ola"                        : <?= $t = "ola" ?> 
t +=s += t += s += " "           : <?= $t = $t . $s = $s . $t .= $s .= " " ?> 
s = "ala"                        : <?= $s = "ala" ?> 
s += s = "ula"                   : <?= $s = $s . $s = "ula" ?> 

s = "x"                          : <?= $s = "x" ?> 
<?
/* int */ $i = 1;
?> 
i = 1                            : <?= $i = 1 ?> 
s += s += i += i += i            : <?= $s = $s . $s .= $i = $i + $i += $i ?> 

s = "ala"                        : <?= $s = "ala" ?> 

"ala".compareTo("ola")           : <?= strcmp("ala", "ola") ?> 
"ala".compareToIgnoreCase("ola") : <?= strcasecmp("ala", "ola") ?> 
"ala".concat(" ma kota")         : <?= "ala" . " ma kota" ?> 
"ala".equals("ola")              : <?= "ala" === "ola" ? "true" : "false" ?> 
"ala".equals("a" + "la")         : <?= "ala" === "a" . "la" ? "true" : "false" ?> 
"A " + "ala".equals("ala")       : <?= "A " . ( "ala" === "ala" ? "true" : "false" ) ?> 
"A " + ! "ala".equals("ala")     : <?= "A " . ( ! "ala" === "ala" ? "true" : "false" ) ?> 
"ala".equals(s)                  : <?= "ala" === $s ? "true" : "false" ?> 
"Ola".equalsIgnoreCase("ola")    : <?= strcasecmp("Ola", "ola") == 0 ? "true" : "false" ?> 
"Ola".equalsIgnoreCase(s)        : <?= strcasecmp("Ola", $s) == 0 ? "true" : "false" ?> 
"".hashCode()                    : <?= crc32("") ?> 
"ala".hashCode()                 : <?= crc32("ala") ?> 
"ala".intern()                   : <?= "ala" ?> 
"alaska".length()                : <?= strlen("alaska") ?> 
s.length()                       : <?= strlen($s) ?> 
"ala".matches("a.a")             : <?= (bool) ereg("a.a", "ala") ? "true" : "false" ?> 
"ala".replaceAll("^a", "e")      : <?= ereg_replace("^a", "e", "ala") ?> 
s.startsWith("al")               : <?= strpos($s, "al") === 0 ? "true" : "false" ?> 
"alabama".substring(5)           : <?= (string) substr("alabama", 5) ?> 
"Polska".toLowerCase()           : <?= strtolower("Polska") ?> 
"Polska".toString()              : <?= "Polska" ?> 
"Polska".toUpperCase()           : <?= strtoupper("Polska") ?> 
" ala  ".trim()                  : <?= trim(" ala  ", "\x00..\x20") ?> 

TODO: przyklad z pelnym zakresem symboli (wymaga przekodowania literalow).

